<html>
  <head>
    <title>
      Sopo Bikes <% #TODO: figure out best way to put dynamic titles%>
    </title>
    <%= javascript_include_tag "jquery-1.3.2.min.js" %>
    <%= javascript_include_tag "jquery.maskedinput-1.2.2.min.js" %>
    <%= javascript_include_tag "jquery-ui-1.7.2.custom.min.js"  %>
    <%= javascript_include_tag "jquery.weekcalendar.js" %>
    <%= javascript_include_tag :defaults %>

    <%= stylesheet_link_tag "styles" %>
    <%= stylesheet_link_tag "scaffold" %>
    <%= calendar_date_select_includes "red" %> <%# or "blue", or "silver", or nil for the default! %>
    <%= stylesheet_link_tag "jquery.weekcalendar.css" %>
    <%= stylesheet_link_tag "smoothness/jquery-ui-1.7.2.custom.css" %>
  </head>
  <body>
    <div id="body">
      <div id="header">
        <div id="logo">

        </div>
        <div class="nav">
          <ul>
            <% if current_user %>
              <li class="first">Welcome, <%= "#{current_user.person.name}" %></li>
              <% if current_user.person.is_keyholder? %>
                <li><a id="toggle_admin_dropdown" href="#" onclick="$('admin_dropdown').toggle(); return false;" class="admin"><span>Admin</span></a>
                <!--<li><%#= link_to_remote "<span>Admin</span>", admin_path, :class => "admin" %></li>-->
                <% end %>
              <li><%= link_to "<span>Dashboard</span>", dashboard_path(current_user), :class => "dashboard" %></li>
              <li><%= link_to "<span>Profile</span>", user_path(current_user), :class => "profile" %></li>
              <li><%= link_to "<span>Logout</span>", logout_path, :class => "logout" %></li>
            <% else %>
              <!--Please <%= link_to "login", login_path %> -->
            <% end %>
          </ul>
        </div>
        <% if current_user && current_user.person.is_keyholder? %>
          <div id="admin_dropdown" style="display:none; text-align: center;">
            <%= render :partial => "admin/menu" %>
          </div>
        <% end %>
      </div>

      <% if flash[:notice] %>
        <div id="flash_notice">
          <p>
            <%= flash[:notice] %>
          </p>
        </div>
      <% end %>

      <div id="content">
        <%= yield %>
      </div>

      <div id="footer">
      </div>
    </div>
  </body>
</html>

